<div id="addAdvertModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">发布广告</h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">广告名称</label>
                                <div class="col-sm-10">
                                    <input v-model="addAdvertInfo.adName" type="text" placeholder="必填，请填写广告名称"
                                           class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">广告分类</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addAdvertInfo.classify">
                                        <option selected disabled value="">必填，请选择广告分类</option>
                                        <option value="9001">物流</option>
                                        <option value="9002">餐饮</option>
                                        <option value="9003">旅游</option>
                                        <option value="9004">酒店</option>
                                        <option value="9005">教育</option>
                                        <option value="9006">互联网</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">投放位置</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addAdvertInfo.locationTypeCd">
                                        <option selected disabled value="">必填，请选择投放位置</option>
                                        <option value="1000">小区内设备</option>
                                        <option value="2000">业主首页</option>
                                        <option value="3000">商圈首页</option>
                                        <option value="5000">服务首页</option>
                                        <option value="6000">便民首页</option>
                                        <option value="4000">员工首页</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">发布类型</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addAdvertInfo.advertType">
                                        <option selected disabled value="">必填，请选择发布类型</option>
                                        <option value="1">站内</option>
                                        <option value="2">站外</option>
                                        <option value="3">不跳转</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">跳转路径</label>
                                <div class="col-sm-10">
                                    <input v-model="addAdvertInfo.pageUrl" type="text" placeholder="请填写跳转路径"
                                           class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">播放顺序</label>
                                <div class="col-sm-10">
                                    <input v-model="addAdvertInfo.seq" type="text" placeholder="必填，请填写播放顺序"
                                           class="form-control">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">投放时间</label>
                                <div class="col-sm-10">
                                    <input v-model="addAdvertInfo.startTime" type="text" readonly
                                           placeholder="必填，请填写投放时间"
                                           class="form-control addAdvertStartTime">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">结束时间</label>
                                <div class="col-sm-10">
                                    <input v-model="addAdvertInfo.endTime" type="text" readonly placeholder="必填，请填写结束时间"
                                           class="form-control addAdvertEndTime">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">播放方式</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addAdvertInfo.viewType">
                                        <option selected disabled value="">必填，请选择播放方式</option>
                                        <option value="8888">图片</option>
                                        <option value="9999">视频</option>
                                    </select></div>
                            </div>
                            <div class="form-group row" v-if="addAdvertInfo.viewType == '8888'">
                                <label class="col-sm-2 col-form-label">图片(800 * 373)</label>
                                <div class="content-img col-sm-10">
                                    <vc:create path="frame/uploadImage" callBackListener="addAdvert"
                                               callBackFunction="notifyUploadImage" namespace="addAdvert">
                                    </vc:create>
                                </div>
                            </div>
                            <div class="form-group row" v-if="addAdvertInfo.viewType == '9999'">
                                <label class="col-sm-2 col-form-label">视频</label>
                                <div class="content-img col-sm-10">
                                    <vc:create path="frame/uploadVedio" callBackListener="addAdvert"
                                               callBackFunction="notifyUploadVedio" namespace="addAdvert">
                                    </vc:create>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button"
                                        v-on:click="saveAdvertInfo()">
                                    <i class="fa fa-check"></i>&nbsp;保存
                                </button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                        data-dismiss="modal">
                                    <i class="fa fa-times"></i>&nbsp;取消
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
